
#ifndef CHATPROJECT_SYSTEMTRAY_H
#define CHATPROJECT_SYSTEMTRAY_H

#include <QWidget>
#include <QSystemTrayIcon>

class SystemTray : public QWidget
{
    Q_OBJECT
public:
    explicit SystemTray(QWidget *parent = nullptr);
    ~SystemTray() override;

protected:
    void initUi();
    void activated(QSystemTrayIcon::ActivationReason reason);

private:
    QSystemTrayIcon *tray_icon_;
};


#endif //CHATPROJECT_SYSTEMTRAY_H
